$(function () {
    window.onload = function () {
        $.ajax({
            url: 'http://localhost:3000/play/hot',
            method: 'get',
            success: function (res) {
                console.log(res);
                var str = '';
                $.each(res, function (index, item) {
                    console.log(4);
                    $.each(res, function (index1, item1) {
                        console.log(1);
                        str += "<li>" +
                            "<img width='180px' src=" + item[index1].img + " >" +
                            "<p>" + item[index1].text + "</p>" +
                            "<p class='p4'>" + item[index1].description + "</p>" +
                            "<p class='p6'>" +
                            "<span>" + item[index1].price + "</span>" +
                            "<span class='span1'><img src='../img/图表img/zan.png' >" + item[index1].like + "</span>" +
                            "<span class='span'><img src='../img/图表img/reply.png'>" + item[index1].like + "</span>" +
                            "</p>" +
                            "</li >"
                    })
                })
                $('.time-z').html(str)
            }
        })
    }
})